package com.phase.projecttest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wuhongkun
 * @date 2024/7/22 17:06
 * @fileName Hello
 */
public class Hello {
    @RestController
    @RequestMapping("/test")
    public class TestController {

        //处理求和
        @GetMapping("/sum")
        public Integer getSum(Integer a, Integer b){
            return  a + b;
        }

        @GetMapping("/hello")
        public String getMessage(){
            return "Hello World";
        }
    }

}
